﻿using UnityEngine;
using System.IO;
using Newtonsoft.Json;
using System.Collections;
using System.Collections.Generic;
using Dict.DataModel;
using NetWork;

namespace Room
{
    public class RoomBattle : RoomBase
    {

        public override SceneType GetSceneType()
        {
            return SceneType.BATTLE;
        }
        public override ServerType GetServerType()
        {
            return NetWork.ServerType.battle;
        }

        public override void Init()
        {
            netManager = new RoomNetBattle();
            netManager.Init(this);
        }

        protected override void Tick()
        {
            netManager.Tick();
        }

        protected override void OnEnter(params object[] param)
        {
            
            Init();
            OnForeground();
            netManager.Enter();
        }

        protected override void OnLeave()
        {
            netManager.Leave();
        }
        
    }
}
